<style type="text/css">
<!--
td {
	font-size: 0.7em;
}
.garis_tajuk {
	border-bottom-color:#999999; 
	border-bottom-style:solid; 
	border-bottom-width:1px;"
}

.small_box { 
	background-color:#FF6600
	width: 100px;
}

-->
</style>
<body leftmargin="0" rightmargin="0" topmargin="0" style="font-size:0.8em">
<!--application header-->
<? include "header.inc.php"; ?>
<!--EOapplication header-->

<!--left menu start-->
<div style="float: left; width:180px; height:400%; margin-right:20px;">
<?
include "menu.php";
?>
</div>
<!--left menu end-->

<!--Main start here-->
<br>
<table width="750" border="0" align="center" cellpadding="2" cellspacing="0" class="">
  <tbody>
    <tr>
      <td width="3%" align="center" bgcolor="#aaaaaa" style=" border-top-style:solid;border-top-width:1px;"><strong>Laporan Berkaitan 
        <?=($_REQUEST['o']=='kelas')?"Kelas":""?>
      Prasekolah </strong></td>
    </tr>
  </tbody>
</table>
<br>
<br>
<br>
<table width="300" border="0" align="center" cellpadding="0" cellspacing="0" class="garis_tajuk">
  <tr>
    <td width="10" align="center" bgcolor="#FF6600">&nbsp;&nbsp;&nbsp;</td>
    <td nowrap bgcolor="#FFFFFF"><strong>&nbsp;Bilangan 
      <?=($_REQUEST['o']=='kelas')?"Kelas":""?>
    Prasekolah Mengikut DUN &amp; Agensi Pelaksana (<?=$negeri?>, <?=$parlimen?>) </strong></td>
  </tr>
</table>
<br>
<br>
<table width="801" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#666666">
  <tr>
    <td align="center" bgcolor="#BBBBBB"><strong>DUN</strong></td>
    <?php
	// Kepala table  .. 
	foreach($agensis as $kod_agensi=>$agensi){
?>
    <td align="center" bgcolor="#BBBBBB"><?=$agensi?></td>
<?
}
?>
    <td width="100" align="center" bgcolor="#BBBBBB"><strong>JUMLAH</strong></td>
  </tr>


<?php

	foreach($duns as $kod_dun=>$dun){
		$even = !$even;
		$bgcolor = ($even)? "white" : "#eeeeee";
?>
  <tr bgcolor="<?=$bgcolor?>">
    <td width="150"><?=$dun?></td>

<?
   foreach($agensis as $kod_agensi=>$agensi){
?>
    <td><?=$hash4[$kod_dun][$kod_agensi]?></td>
    <? } ?>
    <td align="right" bgcolor="<?=$bgcolor?>"><?=$total_horizontal4[$kod_dun]?></td>
  </tr>
  <?
}
?>
  <tr>
    <td align="center" bgcolor="#FFFFFF"><strong>JUMLAH</strong></td>
<?
   foreach($agensis as $kod_agensi=>$agensi){
?>
    <td width="60" bgcolor="#FFFFFF"><?=$total_vertical4[$kod_agensi]?></td>
    <? } ?>
    <td align="right" bgcolor="#FFFFFF"><b><?=$total_all?></b></td>
  </tr>
</table>
<br/>

<?=$FC_graph_pie?>
<p>&nbsp;</p>
<p>&nbsp; </p>
</body>


